import request from '@/utils/request'
export const getList = (data) => {
  return request({
    url: '/user/get_user_list',
    method: 'post',
    data: data
  })
}
export const getRoleList = (params) => {
  return request({
    url: '/role/get_role_select',
    method: 'get',
    params
  })
}

export const del = (id) => request({
  url: '/member/del',
  method: 'post',
  data: { id: id }
})
export const add = (data) => request({
  url: '/user/set_user',
  method: 'post',
  data: data
})
export const update = (data) => request({
  url: '/user/set_user',
  method: 'post',
  data: data
})

// 修改字段

export const updateStatus = (data) => request({
  url: '/user/modify_field',
  method: 'post',
  data: data
})

export const editvipStatus = (data) => request({
  url: '/user/edit_vip',
  method: 'post',
  data: data
})
export const edit_password = (data) => request({
  url: '/user/edit_password',
  method: 'post',
  data: data
})
export const edit_end_time = (data) => request({
  url: '/user/edit_end_time',
  method: 'post',
  data: data
})

